import request from '@/utils/request'

// 查询攻击方天赋列表
export function listTalent(query) {
  return request({
    url: '/attack/talent/list',
    method: 'get',
    params: query
  })
}

// 查询攻击方天赋详细
export function getTalent(talentId) {
  return request({
    url: '/attack/talent/' + talentId,
    method: 'get'
  })
}

// 新增攻击方天赋
export function addTalent(data) {
  return request({
    url: '/attack/talent',
    method: 'post',
    data: data
  })
}

// 修改攻击方天赋
export function updateTalent(data) {
  return request({
    url: '/attack/talent',
    method: 'put',
    data: data
  })
}

// 删除攻击方天赋
export function delTalent(talentId) {
  return request({
    url: '/attack/talent/' + talentId,
    method: 'delete'
  })
}
